<%@ page contentType="text/html; charset=utf-8"%>
<%@ include file="../../../common/include.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<jsp:include page="../../../common/head.jsp">
			 <jsp:param name="_spPage" value="true"/>
		</jsp:include>

		<title>系统帮助管理</title>
		<script language="JavaScript"> 
		  
		//添加系统帮助数据
		function addHelp(){
			window.location.href="add_help.jsp?funcId=${funcId}";
		}		
		//修改系统帮助数据
		function updHelp(helpId){
		window.location.href="updateHelp.do?helpId="+helpId;
		}
		//删除系统帮助数据
		function delHelp(helpId){
			if(confirm("确认删除？"))
			{
				var returnVal = ModalWindow("jump.do?path=delHelp.do&helpId="+helpId,640,480);
				if(returnVal=="ok")
				{
					 xjSpPage.spPageSubmit();
				}
			}
		}		
	</script>
	</head>
	<body>
	<form action="listHelp.do" name="from1" method="post">
	<div id="body_div">
	<w:ShowTitle name="系统帮助管理">
		<img src="../../../images/main/query.png" width="20" height="25" /><a href="#" onclick="_queryDivBg(this)">查询</a>
		<img src="../../../images/main/add.png" width="20" height="25" /><a href="#" onclick="addHelp()">添加</a>
	</w:ShowTitle>
	<div id="body_content">
				<div id="queryDiv">
				<table width="100%" border="0">
					<tr>
						<td colspan="4" class="td_title">
							帮助信息查询
						</td>
					</tr>
					<tr>
						<td width="20%">
							帮助标题
						</td>
						<td class="left_align" width="30%">
							<input name="funcId" type="hidden" value="${funcId}"/>
							<input name="helpTitle" type="text" id="helpTitle" value="${helpTitle}"/>
						</td>
						<td width="20%">
							帮助类别
						</td>
						<td class="left_align" width="30%">
			               <w:select name="helpType" onclick="return false;" styleId="helpType" value="${helpType}">
			               		<w:option optionLabel="请选择" optionValue=""></w:option>
								<w:option optionLabel="功能点说明" optionValue="功能点说明"></w:option>
								<w:option optionLabel="常见问题" optionValue="常见问题"></w:option>
							</w:select>
						</td>
					</tr>
					<tr>
						<td>
							关键字
						</td>
						<td class="left_align" colspan="3">
							<input name="keyWord" type="text" id="keyWord" value="${keyWord}"/>
						</td>
					</tr>
					<tr>
						<td colspan="4">
							<input name="button" type="submit" class="btn_standard" value="查询" />
							<input name="button" type="button" class="btn_standard" onclick="_cancelQuery()" value="取消" />
						</td>
					</tr>
				</table>
				</div>	
				<table width="100%">
					<tr>
						<td width="200" class="td_title">帮助标题</td>
						<td class="td_title" width="150">关键字</td>
						<td class="td_title" width="#">帮助类别</td>
						<td class="td_title" width="120">操作</td>
					</tr>
					<c:forEach items="${datalist}" var="obj">
						<tr>
							<td>${obj.helpTitle}</td>
							<td>${obj.keyWord}</td>
							<td>${obj.helpType}</td>
							<td>
								<a href="#" onclick="updHelp('${obj.helpId}')">修改</a>&nbsp;
								<a href="#" onclick="delHelp('${obj.helpId}')">删除</a>
							</td>
						</tr>
					</c:forEach>
				</table>
				<w:spPage />
			</div>
		</div>	
		</form>
	</body>
</html>